#! /bin/bash

echo "配置mlsql-cluster的配置文件"
sed -i s/MYSQL_HOST/localhost/g /opt/mlsql-cluster/application.docker.yml
sed -i '51s/8080/8081/' /opt/mlsql-cluster/application.docker.yml
sed -i '11s/mlsql/123456/' /opt/mlsql-cluster/application.docker.yml

echo "配置mlsql-console的配置文件"
sed -i '11s/MYSQL_HOST/localhost/g' /opt/mlsql-console/application.docker.yml
sed -i '2s/8080/8081/g' /opt/mlsql-console/start-default.sh
sed -i '15s/mlsql/123456/' /opt/mlsql-console/application.docker.yml



